import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);

import index from '../views/index.vue';
import order from '../views/pages/order.vue';
import orderpage from '../views/pages/orderpage.vue';
import select from '../views/pages/select.vue';
import orderpage2 from '../views/pages/orderpage2.vue';
import mainindex from '../views/mainindex.vue';
export default new Router({
  routes: [

    {
      path: '/',
      name: '导航栏',
      component: index,
      children: [
        {
          path: '/',
          name: '首页',
          component: mainindex,
        },
        {
          path: '/pages/order',
          name: '订单列表',
          component: order,
        },
        {
          path: '/pages/orderpage',
          name: '订单页面',
          component: orderpage2,
        },
        // {
        //   path: '/pages/orderpage2',
        //   name: '订单页面',
        //   component: orderpage,
        // },
        {
          path: '/pages/select',
          name: '选择页面',
          component: select,
        }
      ]
    },

  ]
})
